<?php /* Smarty version Smarty-3.1.12, created on 2013-02-15 15:51:04
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/admin/top_navi.tpl" */ ?>
<?php /*%%SmartyHeaderCode:437614845511bdd2d942536-02851219%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '762e220519cfd3d375943235370be7d27e547b43' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/admin/top_navi.tpl',
      1 => 1360939863,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '437614845511bdd2d942536-02851219',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_511bdd2d9a4805_89870382',
  'variables' => 
  array (
    'hidden' => 0,
    'show_disabled_topnavi' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_511bdd2d9a4805_89870382')) {function content_511bdd2d9a4805_89870382($_smarty_tpl) {?><?php if ($_SESSION['matchLock']){?>
	<?php $_smarty_tpl->tpl_vars["hidden"] = new Smarty_variable("hidden", null, 0);?>
  <?php $_smarty_tpl->tpl_vars["show_disabled_topnavi"] = new Smarty_variable('', null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["hidden"] = new Smarty_variable('', null, 0);?>
  <?php $_smarty_tpl->tpl_vars["show_disabled_topnavi"] = new Smarty_variable("hidden", null, 0);?>
<?php }?>

<form action="<?php echo $_SERVER['PHP_SELF'];?>
?login" method="post">
    <div class="navbar navbar-inverse navbar-fixed-top <?php echo $_smarty_tpl->tpl_vars['hidden']->value;?>
" id="topNavi">
        <div class="navbar-inner">
          <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
            <a class="brand" href="."><img src="../img/dota2league-Logo-small.png" alt="Dota2 League Logo" width="30" style="margin-top:-5px; margin-bottom:-5px;">
            	<img alt="Dota2 League" src="../img/dota2-league-text3.png" style="margin-top: -8px; margin-bottom: -5px;" width="79"> ADMIN
            </a>
            <div class="nav-collapse collapse">
              <ul class="nav">
               <li><a href=".">Home</a></li>
               <li><a href="tests.php">Tests</a></li>
               <li><a href="longPolling2.php">longPolling</a></li>
             </div>
          </div>
        </div>
      </div>
</form>

 <div class="navbar navbar-inverse navbar-fixed-top <?php echo $_smarty_tpl->tpl_vars['show_disabled_topnavi']->value;?>
">
        <div class="navbar-inner">
          <div class="container">
             <a class="brand">Project name</a>
            <div class="nav-collapse collapse">
             <!-- <ul class="nav">
                <li><a href=".">Home</a></li>
                <li class="active"><a href="find_match.php">Find Match</a></li>
                <li><a href="#contact">Contact</a></li>
              </ul>
              <p class="navbar-text pull-right">
                    <<?php ?>?php //include("inc/templates/login_form.php");?<?php ?>>
              </p>-->
            </div><!--/.nav-collapse -->
          </div>
        </div>
      </div>

<script type="text/javascript">
	// ACTIVE MENUPUNKT dynamisch generieren
	var home_path = "<?php echo @HOME_PATH;?>
";
	var url = location.href;
	l(home_path);

	//Home_Parth abschneiden
	position = url.split(home_path);
	position = position[1];
	
	links = $("#topNavi ul[class='nav'] a");
	l(links);
	// alle delektieren
	$(links).closest("li").removeClass("active");
	
	$.each(links, function(index, value){
			l($(value).html());
			// Index.php gesondert behandelt
			if(position == "index.php" || position == ""){
				if($(value).html() == "Home"){
					$(value).closest("li").addClass("active");
				}	
			}
			else{
				if($(value).attr("href") == position){
					$(value).closest("li").addClass("active");
				}
			}
	});
	l(position);
</script>

<?php }} ?>